import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'

// 引入注册脚本
import 'virtual:svg-icons-register'
// 引入组件c
import SvgIcon from '@/components/SvgIcon/index.vue'

const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPluginPersist)
app.use(pinia)

// 全局组件挂载
app.component('svg-icon', SvgIcon)
app.mount('#app')
